#include <QCoreApplication>
#include <math.h>
#include <iostream>

using namespace std;


int main()

{
    int a, b, c, d;
    cout<< "chislo A:";
    cin>>a;
    cout<< "chislo B:";
    cin>>b;
    if(a==b)
    {
        c=0;
        d=0;
    }
            else
        {
            if(a>b)
            {
            c=a+a;
            d=b+a;
            }
            else
            {
            c=a+b;
            d=b+b;
            }
        }
    cout<< "\n chislo a = "<< c;
    cout<< "\n chislo b = "<< d;
    return 0;

}
